<?php
$classname = array(
    'name'	=> 'classname',
    'id'	=> 'classname',
    'value' =>  set_value('classname'),
    'class' => 'text'
);

//教师列表
$teacherid_options=array();
$teacherid_options['']='请选择';
foreach($teacherid as $i) {
    $teacherid_options[$i->id]=$i->username;
}

$submit = array(
    'name'	=> 'submit',
    'id'	=> 'submit',
    'value'	=> 'Submit',
    'class' => 'submit'
);

$reset = array(
    'name'	=> 'reset',
    'id'	=> 'reset',
    'value'	=> 'Reset',
    'class' => 'submit'
);

?>
<head>
    <?php $this->load->view('load_view'); ?>
</head>
<div class="col-wrap handin-wrap">
    <!--start col-->
    <div class="col handin">
        <div class="wrap-title">
            <p class="page-title">
                用户管理
            </p>
        </div>

        <p class="desc">
    	介绍：添加用户，或班级，对用户进行管理
        </p>
        <div class="itemtitle">
            <h3>操作类型</h3>
            <?php $this->load->view('admin/useroptions'); ?>
            <div class="clear"></div>
        </div>
        <div class="arrange manageform">
            <?php echo form_open_multipart('admin/manage/do_upload');?>
            <p>
                <?php echo form_label('班级名称');?>
                <?php echo form_input($classname)?>
            </p>
            <p>
                <?php
                    echo form_label('选择班主任');
                    echo form_dropdown('teacher', $teacherid_options);
                ?>
            </p>
            <p>
                <?php
                    echo form_label('上传文件');
                ?>
                <input type="file" name="userfile" size="20" />
            </p>
            <?php echo form_submit($submit); ?>
            <?php echo form_reset($reset); ?>
            <?php echo form_close()?>
        </div>

    </div>
    <!--end col-->
</div>
<!--end col-wrap-->
<script>
    $('ul.selectNav li#addclass').addClass('current');
    $(window.parent.document).find("ul.nav li a").removeClass("then");
    $(window.parent.document).find("a#usermanage").attr("class","then");
</script>
